import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {HomeGuardService} from '../../service/home.guard.service';
import {UserDetailsComponent} from './details/user.details.component';

const routes: Routes = [
  {
    path: '', canActivate: [HomeGuardService], children: [{
      path: 'details', component: UserDetailsComponent
    }]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class UserRouterModule {
}
